using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace commonV2.forms
{
    public partial class dateMonthForm1 : baseDialogForm
    {
        public dateMonthForm1()
        {
            InitializeComponent();
            yearCb.LoadData();
            monthCb.myMonth = DateTime.Today.Month;
        }
        public DateTime myStartDate
        {
            get
            {
                DateTime dt = DateTime.Today;
                if (!dateTimeLibs.MakeDate(1, monthCb.myMonth, yearCb.myYear, out dt)) return Consts.constNullDate;
                return dt;
            }
        }
        public DateTime myEndDate
        {
            get
            {
                DateTime dt = DateTime.Today;
                if (!dateTimeLibs.MakeDate(1, monthCb.myMonth, yearCb.myYear, out dt)) return Consts.constNullDate;
                return dt.AddMonths(1).AddDays(-1); 
            }
        }
    }
}

